Deploy a new version of your app
Prepare for Production
Once the ads have been tested and are correctly integrated, it's time to prepare your app for production release:
Switch to Production Configuration
-
Replace Test IDs: If test placement IDs were used during development, replace them with your production application and placement IDs obtained in Get your configurations.
-
Disable Test Mode and Verbose Logging: Ensure the test flag is set to
false
in your SDK initialization:
- Swift
- Objective-C
import XMediator
// Production configuration - disable test mode and verbose logging
let initSettings = InitSettings(
test: false, // Disable test mode for production
verbose: false, // Disable verbose logging for production
userProperties: UserProperties(
userId: "<your-user-id>",
customProperties: customProperties
)
)
XMediatorAds.startWith(appKey: "<your-app-key>",
initSettings: initSettings) { result in
print("Production SDK initialized successfully!")
// Start loading your production placements
}
@import XMediatorObjC;
// Production configuration - disable test mode and verbose logging
X3MInitSettings *initSettings = [X3MInitSettings new];
initSettings.test = NO; // Disable test mode for production
initSettings.verbose = NO; // Disable verbose logging for production
X3MUserProperties *userProperties = [X3MUserProperties new];
userProperties.userId = @"<your-user-id>";
userProperties.customProperties = customProperties;
initSettings.userProperties = userProperties;
[X3MXMediatorAds startWithAppKey:@"<your-app-key>"
initSettings:initSettings
callback:^(NSError * _Nullable error) {
NSLog(@"Production SDK initialized successfully!");
// Start loading your production placements
}];
Before deploying to the App Store:
- ✅ Set
test: false
to disable test ads - ✅ Set
verbose: false
to disable debug logging - ✅ Replace test placement IDs with production IDs
- ✅ Verify all SKAdNetwork IDs are included in Info.plist
- ✅ Test on physical devices with production configuration
- Review Configuration: Double-check that all placement IDs match your production setup in the admin panel.
Build Your App
With the production configuration in place, build your app for release:
- Remove debug flags and verbose logging
- Test on physical devices to ensure everything works correctly
- Verify ad loading and display in production mode
Deploy to App Stores
Upload Your App
With the integration complete and configurations switched to production, you're ready to upload the new version of your app to:
- Google Play Store (Android)
- Apple App Store (iOS)
Post-Deployment Monitoring
After your app is live, monitor the performance of monetization, log in to the admin panel and access the dashboard section. There, you will find all the necessary information in real time.
Congratulations! 🎉
Thanks for trusting X3M! We're excited to help you succeed with your app's monetization.